/**
 * 药品销售信息统计
 */

import Axios from 'axios'

import { requestHeader } from './requestHeader' 


/**2
 * 
 * @returns 
 * 获取药品信息 
 */
export function drugInfo(pageSize){

    return Axios({
        url: requestHeader() + '/DrugSales/drugInfo',
        method: 'get',
        params:{"pageSize":pageSize}
      })

}


/**
 * 
 * @param {*} pageName 
 * @returns 
 * 查询
 */
export function drugQueryInfo(drugName){

  return Axios({
      url: requestHeader() + '/DrugSales/drugQueryInfo',
      method: 'get',
      params:{"drugName":drugName}
    })

}


/**
 * 销售数量和销售总额统计
 */
export function statistics(){

  return Axios({
    url: requestHeader() + '/DrugSales/statistics',
    method: 'get',
  })


}